package longcaisuyun.longcai.com.net;


import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONException;
import org.json.JSONObject;


@HttpInlet(Net.GOODSPAYS)
public class Post_goodsPay extends WHAsyPost<Post_goodsPay.Info> {
    public String name = "";
    public String mobile = "";
    public String address = "";
    public String goodid = "";
    public String driverid = "";
    public String content = "";
    public String type = "";

    public Post_goodsPay(String name, String mobile, String address, String goodid,String driverid,  String content, String type, AsyCallBack asycallback) {
        super(asycallback);
        this.name = name;
        this.mobile = mobile;
        this.address = address;
        this.driverid = driverid;
        this.goodid = goodid;
        this.content = content;
        this.type = type;
    }

    @Override
    protected Info parser(JSONObject object) {
        Info info = new Info();
        try {
            info.message = object.getString("message");
            return info;
        } catch (JSONException e) {
            e.printStackTrace();
        }
        return null;
    }

    public static class Info {
        public String message = "";
    }
}



